const express=require('express') 
const addaddressRouter=require('./router/addaddress');
const adminaddressRouter=require('./router/adminaddress');
const editaddressRouter=require('./router/editaddress');
const loginRouter=require('./router/login');
const checkuserRouter=require('./router/checkuser');
const checkhallRouter=require('./router/checkhall');
const selectHall=require('./router/selectHall')
const takeNum=require('./router/takeNum')
const checkoutRouter=require('./router/checkout');
const settleRouter=require('./router/settle');
const typeRouter=require('./router/type');
const paysuccessRouter=require('./router/paysuccess');
const listRouter = require('./router/listOperate');
const getUIDRouter=require('./router/getUID');
const getgoodsRouter=require('./router/getgoods');
const goodsdetRouter=require('./router/goodsdet');
const getscoreRouter=require('./router/getscore');
const hallnumRouter=require('./router/hallnum');
const minhallRouter=require('./router/minhall');

const app=express();
app.use(express.json())
app.use(express.urlencoded({extended:false}))

app.use(addaddressRouter);
app.use(adminaddressRouter);
app.use(editaddressRouter);
app.use(loginRouter);
app.use(checkuserRouter);
app.use(checkhallRouter);
app.use(selectHall)
app.use(takeNum)
app.use(checkoutRouter);
app.use(settleRouter);
app.use(typeRouter);
app.use(paysuccessRouter);
app.use(listRouter);
app.use(getgoodsRouter);
app.use(goodsdetRouter);
app.use(getscoreRouter);
app.use(hallnumRouter);
app.use(minhallRouter);
app.use(getUIDRouter);


app.listen(80,()=>{
	console.log('已经启动')
})
